<?php echo $this->render('frontend_common/header.phtml');
?>
<?php $this->headLink()->appendStylesheet($this->baseUrl('css/admintable.css')); ?>
<div id="Content">
<div style="margin-left: 100px ">
<div style="margin: 30px;margin-left: 0"><a style="border: 1px solid red; background-color: white; border-radius:5px 5px 5px; padding:5px ;font-weight: bold;color: black;text-decoration: none " href="<?php echo $this->url(array('controller'=>'admin','action'=>'addflowerdetail','id_sp'=>$this->idsp)) ?>">Thêm chi tiết giỏ hoa</a></div>
<table style="margin-bottom: 50px">
<tr>
	<thead>
	<th>hoa_id</th>
	<th>slhoa</th>
	<th></th>
	</thead>
</tr>
<?php 
	$tenhoa=$this->tenhoa;
	foreach ($this->flowerdetail as $key=>$ct_giohoa)
	{
?>
		<tr
		<?php
			if ($key % 2 != 0)
				echo ('class="changecolor1" style="background-color:#f3f3f3;"');
			else
				echo ('class="changecolor2" style="background-color:#FFF;"');
		?>
		>
			<td><?php echo $tenhoa[$ct_giohoa['hoa_id']] ?></td>
			<td><?php echo $ct_giohoa['slhoa'] ?></td>
			<td class="command">
				<a href=<?php echo $this->url(array('controller'=>'admin','action'=>'editflowerdetail','id_sp'=>$ct_giohoa['giohoa_id'],'hoa_id'=>$ct_giohoa['hoa_id'])) ?>>Thay đổi số lượng hoa</a>
				<a href=<?php echo $this->url(array('controller'=>'admin','action'=>'deleteflowerdetail','id_sp'=>$ct_giohoa['giohoa_id'],'hoa_id'=>$ct_giohoa['hoa_id'])) ?>>Xóa</a>
			</td>
		</tr>

<?php }?>
</table>
<div style="margin: 30px;margin-left: 0"><a style="border: 1px solid red; background-color: white; border-radius:5px 5px 5px; padding:5px ;font-weight: bold;color: black;text-decoration: none " href="<?php echo $this->url(array('controller'=>'admin','action'=>'flowermanager')) ?>">Trang quản lý giỏ hoa</a></div>
<?php echo $this->render('frontend_common/footer.phtml');
?>